package com.abner.springcloud.consumer.movie.service;

import com.abner.springcloud.consumer.movie.config.FeignLogConfiguration;
import com.abner.springcloud.consumer.movie.engity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: Abner.Jiang
 * @Description:
 * @Date: Created on 2019/12/18 16:03
 * @ProjectName: springcloud-provider-user
 */
@FeignClient(name = "SPRINGCLOUD-PROVIDER-USER",configuration = FeignLogConfiguration.class)
public interface UserFeignClient {

    @RequestMapping("/user/get/{id}")
    public User getUserById(@PathVariable("id") String id);
}
